import request from '@/utils/request'

// 获取员工信息
export function getEmployees(params) {
    return request.get('/sys/user', { params })
}

export function delEmployee(id) {
    return request.delete('/sys/user/' + id)
}

export function addEmployee(data) {
    return request.post('/sys/user/', data)
}

export function importEmployees(data) {
    return request.post('/sys/user/batch', data)
}

export function getEmployeeDetail(id) {
    return request.get(`/sys/user/${id}`)
}

export function updateEmployeeDetail(data) {
    return request.put(`/sys/user/${data.id}`, data)
}